Verify and Translate a Binary MAC (Base24)

Command:

Verify a MAC on binary data using a source TAK, then recompute the MAC using a destination TAK.

Notes:

If the verify fails no destination MAC is computed.

 

Field

Length & Type

Details

COMMAND MESSAGE

Message header

m A

(Subsequently returned to the Host unchanged).

Command code

2 A

Value MO.

Source TAK

16H or 1A+32H or 1A+48H

The source TAK used to verify the MAC, encrypted under LMK 16-17.

Destination TAK

16H or 1A+32H or 1A+48H

The destination TAK used to verify the MAC, encrypted under LMK 16-17.

MAC

8 H

The MAC to be verified.

EITHER

For Binary Communications Modes:

  

  

Data length

3 H

X’001 to X’320 indicating the length of the data field.

Data

n B

Data to be MACed. 1 to 800 bytes.

OR

For Normal Async Modes:

  

  

Data length

3 H

X’002 to X’320 indicating the length of the data field.

Data

n H

Data to be MACed. 2 to 800 hexadecimal characters representing 1 to 400 bytes.

End message delimiter

1 C

Optional. Must be present if a message trailer is present. Value X’19.

Message trailer

n A

Optional. Maximum length 32 characters.

RESPONSE MESSAGE

Message header

n A

Returned to the Host unchanged.

Response code

2 A

Value MP.

Error code

2 N

00 : No errors

01 : MAC did not verify

10 : Source TAK parity error

11 : Destination TAK parity error

12 : No keys loaded in user storage

13 : LMK parity error

15 : Error in input data

27 : Source or destination TAK not single length

80 : Data length error

MAC

8 H

The computed MAC.

End message delimiter

1 C

Present only if present in the command message. Value X’19.

Message trailer

n A

Present only if present in the command message. Maximum length 32 characters.